package com.example.iot.common.utils;

import android.app.Activity;
import android.os.Bundle;

public class RouterHelper {

    private static RouterHelper instance;

    public static RouterHelper init() {
        if (instance == null) {
            synchronized (RouterHelper.class) {
                if (instance == null) {
                    instance = new RouterHelper();
                }
            }
        }
        return instance;
    }

    public RouterHelper() {
        register();
    }

    /**
     * 路由注册
     */
    private void register() {

    }

    public void toRouterUrl(Activity activity, String url) {
    }

    public void toRouterBundel(Activity activity, String url, Bundle bundle) {
    }

    public void toRputerResult(Activity activity, String url, Bundle bundle, int requestCode) {

    }
}
